<script type="text/javascript">
var ann_content = null;
$(function () {
	var url = '${contextPath}script/oa/ann.js?time=' + sys_get_time();
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			if(CKEDITOR.instances['ann_content']) {
				CKEDITOR.remove(CKEDITOR.instances['ann_content']);
				}

			var uploadParm = {
				height:'150px',
				filebrowserBrowseUrl:'${contextPath}browse-file.html',
				filebrowserImageBrowseUrl:'${contextPath}browse-image.html',
				filebrowserUploadUrl:'${contextPath}m/ann-upload.html?type=file',
				filebrowserImageUploadUrl:'${contextPath}m/ann-upload.html?type=image'
			}

			ann_content = CKEDITOR.replace('ann_content', uploadParm);
		}
	});
	$('#editAnnForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>
<#import "/freemarker/modeltype.ftl" as mt>
<div >
	<h3>编辑公告信息</h3>
</div>
<div class="table-left">
	<form id="editAnnForm">
		<table class="table table-striped">
			<tr>
				<td style="width: 70px"> 标 题</td>
				<td>
					<input type="text" id="title" name="title" value="${(ann.title)!''}" />
					<input type="hidden" id="code" name="code" value="${(ann.code)!''}"/>
				</td>
			</tr>
			<tr>
				<td> 内 容&nbsp;</td>
				<td><textarea id="ann_content" cols="30" rows="8">${(ann.content)!''}</textarea></td>
			</tr>
			<!-- <tr>
				<td>是否发布</td>
				<td><@mt.YesOrNo r=true name='edition' d=false mc=false value="${(ann.edition)!''}"/></td>
			</tr> -->
			<tr>
				<td colspan="2" style="text-align: center;">
				<#if (ann?? && (cu_code != ann.cu || ann.uc??))>
				<#else>
				<a href="#" class="btn btn-info" onclick="javascript:saveAnn_ann(); return false;">
					<i class="icon-save"></i> &nbsp;保&nbsp;&nbsp;存
				</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				</#if>
					<a href="#" class="btn btn-primary" onclick="javascript: history.back(); return false;">
						<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消
					</a>
				</td>
			</tr>
		</table>
	</form>
</div>
